package classi;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.util.TimerTask;

public class TaskRisolutoreEsami extends TimerTask implements Serializable{
	
	RisolutoreEsameImpl re = null;
	public TaskRisolutoreEsami(RisolutoreEsameImpl re){
		this.re=re;
		
	}

	@Override
	public void run() {
		try {
			re.passaAllaProssima();
		} catch (RemoteException e) {
			System.out.println("[TASKRISOLUTORE]Remote exception");
		}

	}

}
